<?php
require('../../cofd/common.php');
$rawPostData = file_get_contents("php://input");
$jsonsz = json_decode($rawPostData, true); 
$old = $jsonsz['cdks'];
$newcdk = $jsonsz['cdk'];
$getime = $jsonsz['getime'];
$sycs = $jsonsz['sycs'];
$xzcs = $jsonsz['xzcs'];
$tell = $jsonsz['tell'];
$sql = "UPDATE exam_cdk SET cdk = '$newcdk',getime='$getime',xzcs='$xzcs',sycs='$sycs',tell='$tell' WHERE cdk='$old'";
$conn -> query($sql);
$conn -> close();
echo json_encode(array('code'=>0,'msg'=>'ok','json'=>$jsonsz),JSON_UNESCAPED_UNICODE);